package com.pn.service;

import com.pn.entity.Result;
import com.pn.entity.User;
import com.pn.page.Page;

public interface UserService {
    public User queryUserByCode(String userCode);
    public Page queryUserByPage(Page page, User user);

    public Result saveUser(User user);

    public Result setUserState(User user);

    public int deleteUserById(Integer userId);

    //重置密码的业务方法
    public Result resetPwd(Integer userId);

    //修改用户昵称的业务方法
    public Result updateUserName(User user);
}
